package com.we.websocket.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import lombok.Data;

@ApiModel(description="chat_list")
@Data
@TableName(value = "chat_list")
public class ChatList implements Serializable {
    /**
     * 聊天列表主键
     */
    @TableId(value = "list_id", type = IdType.INPUT)
    @ApiModelProperty(value="聊天列表主键")
    private Integer listId;

    /**
     * 聊天主表id
     */
    @TableField(value = "link_id")
    @ApiModelProperty(value="聊天主表id")
    private String linkId;

    /**
     * 发送者
     */
    @TableField(value = "from_user")
    @ApiModelProperty(value="发送者")
    private String fromUser;

    /**
     * 接收者
     */
    @TableField(value = "to_user")
    @ApiModelProperty(value="接收者")
    private String toUser;

    /**
     * 发送方是否在窗口
     */
    @TableField(value = "from_window")
    @ApiModelProperty(value="发送方是否在窗口")
    private Byte fromWindow;

    /**
     * 接收方是否在窗口
     */
    @TableField(value = "to_window")
    @ApiModelProperty(value="接收方是否在窗口")
    private Byte toWindow;

    /**
     * 未读数
     */
    @TableField(value = "unread")
    @ApiModelProperty(value="未读数")
    private Integer unread;

    /**
     * 是否删除
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value="是否删除")
    private Byte status;

    private static final long serialVersionUID = 1L;
}